ABS

Section: Misc. Reference Manual Pages (3P)
Updated: August 1, 1992
Index Return to Main Contents
 

NAME

abs - integer absolute value  

SYNOPSIS

#include <stdlib.h>

int abs(int i);
 

DESCRIPTION

Abs returns the absolute value of its integer operand.  

SEE ALSO

floor(3M) for fabs  

BUGS

Applying the abs function to the most negative integer generates a result which is the most negative integer. That is,
abs(0x80000000)

returns 0x80000000 as a result.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 17:20:59 GMT, March 25, 2025